from sqlalchemy import Column, Integer, String, DateTime
from SqlalchemyConfig import Base
from datetime import datetime

class DeviceInfo(Base):
    __tablename__ = 'dr_device_info_list'

    id = Column(Integer, primary_key=True, autoincrement=True)
    region_id = Column(String(50), nullable=False)
    area_id = Column(String(30), nullable=False)
    create_time = Column(DateTime, default=datetime.now)
    update_time = Column(DateTime, default=datetime.now)